import direct.directbase.DirectStart

def WinXYGet():
    winX, winY = base.win.getXSize(), base.win.getYSize()
    minWinXY = float(min(winX, winY))
    scaleX, scaleY = winX/minWinXY, winY/minWinXY
    return scaleX, scaleY

